c# return two variables of different types

81

c# return two variables of different types -

(string, string, int) LookupName(long id) // tuple return type
{
    ... // retrieve first, middle and myNum from data storage
    return (first, middle, myNum); // tuple literal
}

Comments

Submit
0 Comments